package com.test.service;

import com.test.pojo.*;

import java.util.List;
import java.util.Map;

public interface InfoService {
    List<News> findAllNews();

    News findNewsById(Integer id);

    int addNews(News news);

    int deleteNews(Integer id);

    int updateNews(News news);

    List<News> findNewsByTitle(String title);

    List<News> findNewsByType(String type);

    int addFeedback(Feedback feedback);

    List<Feedback> findFeedbackById(Integer id);

    int deleteFeedback(Integer id);

    List<News> findNews(Map<String, Object> queryParams);

    List<Feedback> findFeedbackByType(String type);

    List<Feedback> findAllFeedback();

    Map<String,Integer> getAllNum();

    List<News> findLatestNews();

    List<Feedback> findFeedback(Map<String, Object> queryParams);

    int addHistory(History history);

    int deleteHistory(Integer id);

    List<History> findAllHistory(String username);

    List<History> findHistoryById(Integer id);
}
